package com.dunqi.gpm.shunqing.home.widget;

import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.FrameLayout;

import com.dunqi.gpm.shunqing.R;
import com.dunqi.gpm.shunqing.develop.widget.DrawLeftRadioButton;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by 空 on 2017/11/27 0027.
 */

public class TwoInOne extends FrameLayout {

    @BindView(R.id.start_audit_text)
    DrawLeftRadioButton startAuditText;
    @BindView(R.id.back_edit_text)
    DrawLeftRadioButton backEditText;

    public TwoInOne(@NonNull Context context) {
        this(context, null);
    }

    public TwoInOne(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        LayoutInflater.from(context).inflate(R.layout.two_in_one, this);
        ButterKnife.bind(this);
    }

    public void setOnTwoClickListener(OnClickListener left,OnClickListener right){
        startAuditText.setOnClickListener(left);
        backEditText.setOnClickListener(right);
    }




}
